import request from '@/utils/request'

//   *******************  设备工艺 ******************
const api = {
  // 获取设备列表
  GetMatchProductDevices(data, method) {
    return request({
      url: '/api/ProduceMachine/GetMatchProduceMachineList',
      method: method || 'post',
      data: data
    })
  },
  // 新增设备工艺
  AddProductCraftDevice(data, method) {
    return request({
      url: '/api/ProductCraftDevice/AddProductCraftDevice',
      method: method || 'post',
      data: data
    })
  },
  // 获取工艺列表
  GetMatchPageProductCraftDevices(data, method) {
    return request({
      url: '/api/ProductCraftDevice/GetMatchPageProductCraftDevices',
      method: method || 'post',
      data: data
    })
  },
  // 删除设备工艺
  DeleteProductCraftDevice(data, method) {
    return request({
      url: '/api/ProductCraftDevice/DeleteProductCraftDevice',
      method: method || 'post',
      data: data
    })
  },

  //获取某个成品/半成品的库存数据
  QueryOneFinishedProductStockQuantityData(data, method) {
    return request({
      url: '/api/FinishedProduct/QueryOneFinishedProductStockQuantityData',
      method: method || 'post',
      data: data
    })
  },
  // 选择工艺数据 ***** 公用 *****
  GetMatchProductCrafts(data, method) {
    return request({
      url: '/api/ProductCraft/GetMatchProductCrafts',
      method: method || 'post',
      data: data
    })
  },
  // *************************** 表面管理 ****************************

  //  表面要求
  QuerySurfaceRequireDataList(data, method) {
    return request({
      url: '/api/System/QuerySurfaceRequireDataList',
      method: method || 'post',
      data: data
    })
  },
  // 表面要求数据列表
  GetPageSurfaceRequireCraftMapDataList(data, method) {
    return request({
      url: '/api/Produce/GetPageSurfaceRequireCraftMapDataList',
      method: method || 'post',
      data: data
    })
  },

  // 根据业务订单号获取订单产品的包装信息
  GetOrderProductPackageInfoByOrderNo(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetOrderProductPackageInfoByOrderNo',
      method: method || 'post',
      data: data
    })
  },

  // 获取某个成品的规格成品数据列表
  GetProductsStockDataList(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetProductsStockDataList',
      method: method || 'post',
      data: data
    })
  },
  // 获取机台的生产领料单列表数据
  GetMachinesProduceGetMaterialBills(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetMachinesProduceGetMaterialBills',
      method: method || 'post',
      data: data
    })
  },

  // 获取生产任务单部分字段
  GetProduceTaskBillsPartFileds(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetProduceTaskBillsPartFileds',
      method: method || 'post',
      data: data
    })
  },
  // 获取生产机台的生产领料明细列表数据
  GetMachinesProduceGetMaterialMxDataList(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetMachinesProduceGetMaterialMxDataList',
      method: method || 'post',
      data: data
    })
  },
  // 获取生产机台的生产领料单列表数据
  GetMachinesProduceGetMaterialBillList(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetMachinesProduceGetMaterialBillList',
      method: method || 'post',
      data: data
    })
  },
  // 获取生产机台的生产退料明细列表数据
  GetMachinesProduceBackMaterialMxDataList(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetMachinesProduceBackMaterialMxDataList',
      method: method || 'post',
      data: data
    })
  },
  // 获取生产机台的生产退料单列表数据
  GetMachinesProduceBackMaterialBillList(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetMachinesProduceBackMaterialBillList',
      method: method || 'post',
      data: data
    })
  },
  // 移除表面要求工艺映射数据
  RemoveSurfaceRequireCraftMap(data, method) {
    return request({
      url: '/api/Produce/RemoveSurfaceRequireCraftMap',
      method: method || 'post',
      data: data
    })
  },
  // 执行表面要求工艺映射关联
  ExcuteSurfaceRequireCraftMapRelation(data, method) {
    return request({
      url: '/api/Produce/ExcuteSurfaceRequireCraftMapRelation',
      method: method || 'post',
      data: data
    })
  },
  // *********************** 材料管理 **************************

  // 获得印刷材料数据列表
  QueryPrintingMaterialDataList(data, method) {
    return request({
      url: '/api/System/QueryPrintingMaterialDataList',
      method: method || 'post',
      data: data
    })
  },
  // 分页获取材料物料映射数据
  GetPageMaterialStockGoodsMapDataList(data, method) {
    return request({
      url: '/api/Produce/GetPageMaterialStockGoodsMapDataList',
      method: method || 'post',
      data: data
    })
  },
  // 物料分类 弹窗左边
  GetGoodsCategoryDataList(data, method) {
    return request({
      url: '/api/Warehouse/GetGoodsCategoryDataList',
      method: method || 'post',
      data: data
    })
  },
  // 物料分组 弹窗左边
  GetMatchGoodsGroups(data, method) {
    return request({
      url: '/api/Warehouse/GetMatchGoodsGroups',
      method: method || 'post',
      data: data
    })
  },
  // 物料分类 弹窗右边
  GetMatchStockGoodsDataList(data, method) {
    return request({
      url: '/api/Warehouse/GetMatchStockGoodsDataList',
      method: method || 'post',
      data: data
    })
  },
  // 执行材料物料映射关联
  ExcuteMaterialStockGoodsMapRelation(data, method) {
    return request({
      url: '/api/Produce/ExcuteMaterialStockGoodsMapRelation',
      method: method || 'post',
      data: data
    })
  },
  // 移除材料物料映射数据
  RemoveMaterialStockGoodsMap(data, method) {
    return request({
      url: '/api/Produce/RemoveMaterialStockGoodsMap',
      method: method || 'post',
      data: data
    })
  },
  // ****************************************  生产开单 **************
  // 订单列表
  QueryMatchSaleOrderDataList(data, method) {
    return request({
      url: '/api/OrderBusniess/QueryMatchSaleOrderDataList',
      method: method || 'post',
      data: data
    })
  },
  // 批量获取生产任务单配置的物料清单
  GetMoreProduceTaskMaterialList(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetMoreProduceTaskMaterialList',
      method: method || 'post',
      data: data
    })
  },
  // 批量获取生产任务单配置的物料清单
  CreateMoreGetProduceMaterialBills(data, method) {
    return request({
      url: '/api/ProductionBusniess/CreateMoreGetProduceMaterialBills',
      method: method || 'post',
      data: data
    })
  },
  // 选择业务订单后自动创建生产任务单
  AutoCreateProduceTaskBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/AutoCreateProduceTaskBill',
      method: method || 'post',
      data: data
    })
  },
  // 根据订单号获取订单详细数据
  GetSaleOrderDetailByOrderNo(data, method) {
    return request({
      url: '/api/OrderBusniess/GetSaleOrderDetailByOrderNo',
      method: method || 'post',
      data: data
    })
  },
  // 获取工艺和工艺设备
  SureChooseProduceCraftEquipmentMaps(data, method) {
    return request({
      url: '/api/ProductionBusniess/SureChooseProduceCraftEquipmentMaps',
      method: method || 'post',
      data: data
    })
  },
  // 获取订单的彩稿数据
  QueryOrdersColorDrafts(data, method) {
    return request({
      url: '/api/OrderBusniess/QueryOrdersColorDrafts',
      method: method || 'post',
      data: data
    })
  },
  // 执行修改生产任务单
  ExcuteUpdateProduceTaskBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/ExcuteUpdateProduceTaskBill',
      method: method || 'post',
      data: data
    })
  },
  // 分页获取生产任务单列表数据
  GetMatchPageProduceTaskBills(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetMatchPageProduceTaskBills',
      method: method || 'post',
      data: data
    })
  },

  // 获取某个缴库单的装箱单数据【打印装箱单】
  GetProduceHandInBillsZxBoxBillList(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetProduceHandInBillsZxBoxBillList',
      method: method || 'post',
      data: data
    })
  },
  // 获取某个订单的所有生产任务单数据列表 pipei
  GetMatchProduceTaskBillsForOrder(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetMatchProduceTaskBillsForOrder',
      method: method || 'post',
      data: data
    })
  },
  // 获取某个订单的所有生产任务单数据列表
  GetProduceTaskBillsForOrder(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetProduceTaskBillsForOrder',
      method: method || 'post',
      data: data
    })
  },
  // 获取某个订单的所有生产任务单数据列表
  GetMatchProduceTaskBills(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetMatchProduceTaskBills',
      method: method || 'post',
      data: data
    })
  },
  // s删除生产任务单
  DeleteProduceTaskBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/DeleteProduceTaskBill',
      method: method || 'post',
      data: data
    })
  },
  // 获取生产任务单明细数据
  GetProduceTaskBillDetail(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetProduceTaskBillDetail',
      method: method || 'post',
      data: data
    })
  },
  // 确认生产任务单
  SureProduceTaskBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/SureProduceTaskBill',
      method: method || 'post',
      data: data
    })
  },
  // 作废生产任务单
  CancelProduceTaskBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/ScrapProduceTaskBill',
      method: method || 'post',
      data: data
    })
  },
  // 撤回生产任务单
  RevocationProduceTaskBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/RevocationProduceTaskBill',
      method: method || 'post',
      data: data
    })
  },
  // 全部确认
  SureSaleOrderProduceFinished(data, method) {
    return request({
      url: '/api/OrderBusniess/SureSaleOrderProduceFinished',
      method: method || 'post',
      data: data
    })
  },
  // 全部停工
  SetOrdersProduceBillsStop(data, method) {
    return request({
      url: '/api/ProductionBusniess/SetOrdersProduceBillsStop',
      method: method || 'post',
      data: data
    })
  },
  // 停工
  StopProduceTaskBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/StopProduceTaskBill',
      method: method || 'post',
      data: data
    })
  },
  // 根据老生产单复制创建新的生产任务单
  CopyCreateProduceTaskBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/CopyCreateProduceTaskBill',
      method: method || 'post',
      data: data
    })
  },
  // 完成生产任务单
  FinishedProduceTaskBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/FinishedProduceTaskBill',
      method: method || 'post',
      data: data
    })
  },
  // ******************************** 采购管理 *****************************
  // 分页获取采购单列表
  GetMatchPagePurchaseOrders(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetMatchPagePurchaseOrders',
      method: method || 'post',
      data: data
    })
  },
  // 获取匹配的预警物料
  GetMatchWarningStockGoodsDataList(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetMatchWarningStockGoodsDataList',
      method: method || 'post',
      data: data
    })
  },
  // 新建采购单
  CreatePurchaseOrder(data, method) {
    return request({
      url: '/api/ProductionBusniess/CreatePurchaseOrder',
      method: method || 'post',
      data: data
    })
  },
  // 采购单明细
  GetPurchaseOrderDetail(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetPurchaseOrderDetail',
      method: method || 'post',
      data: data
    })
  },
  // 作废采购单
  CancelPurchaseOrder(data, method) {
    return request({
      url: '/api/ProductionBusniess/CancelPurchaseOrder',
      method: method || 'post',
      data: data
    })
  },
  // 获取采购类型
  GetPurchaseTypeDataList(data, method) {
    return request({
      url: '/api/Public/GetPurchaseTypeDataList',
      method: method || 'post',
      data: data
    })
  },
  // ***********************  生产领料 **************
  // 获取生产列表
  GetMatchPageProduceMaterialBills(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetMatchPageProduceMaterialBills',
      method: method || 'post',
      data: data
    })
  },
  // 生产任务单配置的物料清单
  GetProduceTaskMaterialList(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetProduceTaskMaterialList',
      method: method || 'post',
      data: data
    })
  },
  // 获取生产任务涉及的设备清单
  GetProduceTaskEquipmentList(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetProduceTaskEquipmentList',
      method: method || 'post',
      data: data
    })
  },
  // 获取生产领料单明细数据
  GetProduceMaterialBillDetail(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetProduceMaterialBillDetail',
      method: method || 'post',
      data: data
    })
  },
  // 新建生产领料单
  CreateGetProduceMaterialBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/CreateGetProduceMaterialBill',
      method: method || 'post',
      data: data
    })
  },
  // 确认生产领料单
  SureGetProduceMaterialBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/SureGetProduceMaterialBill',
      method: method || 'post',
      data: data
    })
  },
  // 作废生产领料单
  CancelGetProduceMaterialBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/CancelGetProduceMaterialBill',
      method: method || 'post',
      data: data
    })
  },
  // 删除生产领料单
  DeleteGetProduceMaterialBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/DeleteGetProduceMaterialBill',
      method: method || 'post',
      data: data
    })
  },
  // 修改生产领料单
  UpdateGetProduceMaterialBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/UpdateGetProduceMaterialBill',
      method: method || 'post',
      data: data
    })
  },
  // *************************  半成品领料 ********************************
  // 分页获取半成品领料单列表数据
  PageQueryGetSemiFinishedProductBills(data, method) {
    return request({
      url: '/api/ProductionBusniess/PageQueryGetSemiFinishedProductBills',
      method: method || 'post',
      data: data
    })
  },
  // 获取半成品领料单明细数据
  GetSemiFinishedProductBillDetail(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetSemiFinishedProductBillDetail',
      method: method || 'post',
      data: data
    })
  },
  // 获取半成品列表
  GetMatchSemiFinishedProductList(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetMatchSemiFinishedProductList',
      method: method || 'post',
      data: data
    })
  },
  // 新建半成品领料单
  CreateGetSemiFinishedProductBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/CreateGetSemiFinishedProductBill',
      method: method || 'post',
      data: data
    })
  },
  // 作废
  CancelGetSemiFinishedProductBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/CancelGetSemiFinishedProductBill',
      method: method || 'post',
      data: data
    })
  },
  // 确定
  SureGetSemiFinishedProductBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/SureGetSemiFinishedProductBill',
      method: method || 'post',
      data: data
    })
  },
  // 修改
  UpdateGetSemiFinishedProductBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/UpdateGetSemiFinishedProductBill',
      method: method || 'post',
      data: data
    })
  },
  // 删除
  DeleteGetSemiFinishedProductBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/DeleteGetSemiFinishedProductBill',
      method: method || 'post',
      data: data
    })
  },
  // *************************  刀版管理  ********************************
  //分页获取刀版数据
  GetPageKnifeVersionList(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetPageKnifeVersionList',
      method: method || 'post',
      data: data
    })
  },

  //创建刀版
  CreateKnifeVersion(data, method) {
    return request({
      url: '/api/ProductionBusniess/CreateKnifeVersion',
      method: method || 'post',
      data: data
    })
  },

  //修改刀版信息
  UpdateKnifeVersion(data, method) {
    return request({
      url: '/api/ProductionBusniess/UpdateKnifeVersion',
      method: method || 'post',
      data: data
    })
  },

  //获取单条刀版数据
  GetSingleKnifeVersionView(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetSingleKnifeVersionView',
      method: method || 'post',
      data: data
    })
  },

  //删除刀版
  DeleteKnifeVersion(data, method) {
    return request({
      url: '/api/ProductionBusniess/DeleteKnifeVersion',
      method: method || 'post',
      data: data
    })
  },

  //修改刀版状态或启用状态
  UpdateKnifeVersionState(data, method) {
    return request({
      url: '/api/ProductionBusniess/UpdateKnifeVersionState',
      method: method || 'post',
      data: data
    })
  },

  //导入刀版数据
  ImportKnifeVersion(data, method) {
    return request({
      url: '/api/ProductionBusniess/ImportKnifeVersion',
      method: method || 'post',
      data: data
    })
  },


  // *************************  刀版申请  ********************************
    //分页获取刀版申请数据
    GetPageKnifeVersionApplyDataList(data, method) {
      return request({
        url: '/api/ProductionBusniess/GetPageKnifeVersionApplyDataList',
        method: method || 'post',
        data: data
      })
    },

    //获取匹配的刀版列表数据
    GetMatchKnifeVersionDataList(data, method) {
      return request({
        url: '/api/ProductionBusniess/GetMatchKnifeVersionDataList',
        method: method || 'post',
        data: data
      })
    },

    //获取刀版申请详情数据
    GetKnifeVersionApplyDetail(data, method) {
      return request({
        url: '/api/ProductionBusniess/GetKnifeVersionApplyDetail',
        method: method || 'post',
        data: data
      })
    },

    //创建刀版申请
    CreateKnifeVersionApply(data, method) {
      return request({
        url: '/api/ProductionBusniess/CreateKnifeVersionApply',
        method: method || 'post',
        data: data
      })
    },

    //修改刀版申请
    UpdateKnifeVersionApply(data, method) {
      return request({
        url: '/api/ProductionBusniess/UpdateKnifeVersionApply',
        method: method || 'post',
        data: data
      })
    },

    //删除刀版申请
    DeleteKnifeVersionApply(data, method) {
      return request({
        url: '/api/ProductionBusniess/DeleteKnifeVersionApply',
        method: method || 'post',
        data: data
      })
    },

    //确认刀版申请
    SureKnifeVersionApply(data, method) {
      return request({
        url: '/api/ProductionBusniess/SureKnifeVersionApply',
        method: method || 'post',
        data: data
      })
    },

    //取消刀版申请审核
    CancelKnifeVersionApplyCheck(data, method) {
      return request({
        url: '/api/ProductionBusniess/CancelKnifeVersionApplyCheck',
        method: method || 'post',
        data: data
      })
    },

    //审核刀版申请
    CheckKnifeVersionApply(data, method) {
      return request({
        url: '/api/ProductionBusniess/CheckKnifeVersionApply',
        method: method || 'post',
        data: data
      })
    },


  // *************************  退料  ********************************
  // 分页获取退料单列表数据
  GetMatchPageBackProduceMaterialBills(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetMatchPageBackProduceMaterialBills',
      method: method || 'post',
      data: data
    })
  },
  // 获取匹配的生产领料单列表数据
  GetMatchProduceMaterialDataList(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetMatchProduceMaterialDataList',
      method: method || 'post',
      data: data
    })
  },
  // 获取匹配的已出库的生产领料单数据
  GetOutStockProduceGetMaterialBills(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetOutStockProduceGetMaterialBills',
      method: method || 'post',
      data: data
    })
  },
  // 获取匹配的生产领料单列表数据
  GetBackProduceMaterialBillsForOrder(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetBackProduceMaterialBillsForOrder',
      method: method || 'post',
      data: data
    })
  },
  // 获取匹配的生产退料单列表数据
  GetBackProduceMaterialBillDetail(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetBackProduceMaterialBillDetail',
      method: method || 'post',
      data: data
    })
  },
  // 获取领料单下的物料列表数据（领料单明细）
  GetGoodsByGetMaterialBillNo(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetGoodsByGetMaterialBillNo',
      method: method || 'post',
      data: data
    })
  },
  // 保存
  CreateBackProduceMaterialBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/CreateBackProduceMaterialBill',
      method: method || 'post',
      data: data
    })
  },
  // 确认
  SureBackProduceMaterialBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/SureBackProduceMaterialBill',
      method: method || 'post',
      data: data
    })
  },
  // 删除
  DeleteBackProduceMaterialBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/DeleteBackProduceMaterialBill',
      method: method || 'post',
      data: data
    })
  },
  // 作废
  CancelBackProduceMaterialBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/CancelBackProduceMaterialBill',
      method: method || 'post',
      data: data
    })
  }, // 修改
  UpdateBackProduceMaterialBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/UpdateBackProduceMaterialBill',
      method: method || 'post',
      data: data
    })
  },
  // **********************  缴库 *********************
  // 缴库列表
  GetPageProductHandInBills(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetPageProductHandInBills',
      method: method || 'post',
      data: data
    })
  },
  // 缴库明细
  GetProductHandInBillDetail(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetProductHandInBillDetail',
      method: method || 'post',
      data: data
    })
  },
  // 缴库明细列表
  GetProductHandInBillsForOrder(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetProductHandInBillsForOrder',
      method: method || 'post',
      data: data
    })
  },
  // 缴库规格
  GetMatchProductPackageGuiGeList(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetMatchProductPackageGuiGeList',
      method: method || 'post',
      data: data
    })
  },
  // 选择包装规格
  QueryPackageBoxGuiGeDataList(data, method) {
    return request({
      url: '/api/System/QueryPackageBoxGuiGeDataList',
      method: method || 'post',
      data: data
    })
  },
  // 新建包装规格
  CreateProductPackageGuiGe(data, method) {
    return request({
      url: '/api/ProductionBusniess/CreateProductPackageGuiGe',
      method: method || 'post',
      data: data
    })
  },
  // 删除产品包装规格
  DeleteProductPackageGuiGe(data, method) {
    return request({
      url: '/api/ProductionBusniess/DeleteProductPackageGuiGe',
      method: method || 'post',
      data: data
    })
  },
  // 确认缴库单
  SureProductHandInBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/SureProductHandInBill',
      method: method || 'post',
      data: data
    })
  },
  // 修改缴库单
  UpdateProductHandInBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/UpdateProductHandInBill',
      method: method || 'post',
      data: data
    })
  },
  // 新建缴库单
  CreateProductHandInBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/CreateProductHandInBill',
      method: method || 'post',
      data: data
    })
  },
  // 删除缴库单
  DeleteProductHandInBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/DeleteProductHandInBill',
      method: method || 'post',
      data: data
    })
  },
  // 作废缴库单
  CancelProductHandInBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/CancelProductHandInBill',
      method: method || 'post',
      data: data
    })
  },
  // 新建办产成品
  CreateSemiFinishedProduct(data, method) {
    return request({
      url: '/api/ProductionBusniess/CreateSemiFinishedProduct',
      method: method || 'post',
      data: data
    })
  },
  // 删除半成品
  DeleteSemiFinishedProduct(data, method) {
    return request({
      url: '/api/ProductionBusniess/DeleteSemiFinishedProduct',
      method: method || 'post',
      data: data
    })
  },
  // 半成品单位
  QueryGoodsUnitDataList(data, method) {
    return request({
      url: '/api/System/QueryGoodsUnitDataList',
      method: method || 'post',
      data: data
    })
  },
  // 库存查询-成品查询
  GetMatchBaseSemiFinishedProductList(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetMatchBaseSemiFinishedProductList',
      method: method || 'post',
      data: data
    })
  },
  // 包含工艺
  GetProduceCraftsForOrder(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetProduceCraftsForOrder',
      method: method || 'post',
      data: data
    })
  },
  // **********************  机台任务 *************************
  // 列表
  GetPageProduceCraftWorkTasks(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetPageProduceCraftWorkTasks',
      method: method || 'post',
      data: data
    })
  },
  // 销售单拿作业列表
  GetProduceCraftWorkTasksForOrder(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetProduceCraftWorkTasksForOrder',
      method: method || 'post',
      data: data
    })
  },
  // 获取生产工艺作业任务明细数据【单个作业任务】
  GetProduceCraftWorkTaskDetail(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetProduceCraftWorkTaskDetail',
      method: method || 'post',
      data: data
    })
  },
  // 完成生产工艺作业任务
  FinishedProduceCraftWorkTask(data, method) {
    return request({
      url: '/api/ProductionBusniess/FinishedProduceCraftWorkTask',
      method: method || 'post',
      data: data
    })
  },
  // 新建生产工艺作业任务（机台任务）
  CreateProduceCraftWorkTask(data, method) {
    return request({
      url: '/api/ProductionBusniess/CreateProduceCraftWorkTask',
      method: method || 'post',
      data: data
    })
  },
  // 删除生产工艺作业任务
  DeleteProduceCraftWorkTask(data, method) {
    return request({
      url: '/api/ProductionBusniess/DeleteProduceCraftWorkTask',
      method: method || 'post',
      data: data
    })
  },
  // 修改生产工艺作业任务
  UpdateProduceCraftWorkTask(data, method) {
    return request({
      url: '/api/ProductionBusniess/UpdateProduceCraftWorkTask',
      method: method || 'post',
      data: data
    })
  },
  // 获取某个业务单的半成品领料单列表数据
  GetSemiFinishedProductBillsByOrderNo(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetSemiFinishedProductBillsByOrderNo',
      method: method || 'post',
      data: data
    })
  }, // 获取某个业务单的生产领料单列表数据
  GetProduceMaterialsByOrderNo(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetProduceMaterialsByOrderNo',
      method: method || 'post',
      data: data
    })
  },
  // ***************** 标签工艺 *********************
  // 分页获取标签类型工艺映射数据
  GetPageTagTypeCraftMapDataList(data, method) {
    return request({
      url: '/api/Produce/GetPageTagTypeCraftMapDataList',
      method: method || 'post',
      data: data
    })
  }, // 移除标签类型工艺映射数据
  RemoveTagTypeCraftMap(data, method) {
    return request({
      url: '/api/Produce/RemoveTagTypeCraftMap',
      method: method || 'post',
      data: data
    })
  }, // 执行标签类型工艺映射关联
  ExcuteTagTypeCraftMapRelation(data, method) {
    return request({
      url: '/api/Produce/ExcuteTagTypeCraftMapRelation',
      method: method || 'post',
      data: data
    })
  }, // 执行销售订单撤单停工操作
  ExcuteCancelProduceBillAndStopWork(data, method) {
    return request({
      url: '/api/OrderBusniess/ExcuteCancelProduceBillAndStopWork',
      method: method || 'post',
      data: data
    })
  }, // 执行确认销售订单完成生产操作
  ExcuteSureSaleOrderProduceFinished(data, method) {
    return request({
      url: '/api/OrderBusniess/ExcuteSureSaleOrderProduceFinished',
      method: method || 'post',
      data: data
    })
  }, // 完成生产工艺任务
  FinishedProduceCraftTask(data, method) {
    return request({
      url: '/api/ProductionBusniess/FinishedProduceCraftTask',
      method: method || 'post',
      data: data
    })
  }, 

  // 判断销售订单下的所有生产任务单状态是否都完成
  JuadgeSaleOrderProduceIsFinished(data, method) {
    return request({
      url: '/api/OrderBusniess/JuadgeSaleOrderProduceIsFinished',
      method: method || 'post',
      data: data
    })
  }, 
  
  
  // 打印工单
  GetProduceWorkBillData(data, method) {
    return request({
      url: '/api/ProductionBusniess/GetProduceWorkBillData',
      method: method || 'post',
      data: data
    })
  },

  // 分页获取匹配的彩稿审核通过的销售订单数据
  GetPageSaleOrdersByPassingColorDraft(data, method) {
    return request({
      url: '/api/OrderBusniess/GetPageSaleOrdersByPassingColorDraft',
      method: method || 'post',
      data: data
    })
  },

  // 获取订单详情接口
  GetSaleOrderGroupDetail(data, method) {
    return request({
      url: '/api/OrderBusniess/GetSaleOrderGroupDetail',
      method: method || 'post',
      data: data
    })
  },

  // 生产领料单作废
  CancelGetProduceMaterialBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/CancelGetProduceMaterialBill',
      method: method || 'post',
      data: data
    })
  },

  // 根据订单编码获取订单的产品型号数据
  GetOrderProductSpecificationBySaleOrderCode(data, method) {
    return request({
      url: '/api/OrderBusniess/GetOrderProductSpecificationBySaleOrderCode',
      method: method || 'post',
      data: data
    })
  },

  // 批量领料（新）
  BatchCreateGetProduceMaterialBills(data, method) {
    return request({
      url: '/api/ProductionBusniess/BatchCreateGetProduceMaterialBills',
      method: method || 'post',
      data: data
    })
  },

  // 撤回生产缴库单
  RevokeProductHandInBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/RevokeProductHandInBill',
      method: method || 'post',
      data: data
    })
  },

  // 获取申请单关联的出库明细
  GetOutStockDetailViewList(data, method) {
    return request({
      url: '/api/OutStockBill/GetOutStockDetailViewList',
      method: method || 'post',
      data: data
    })
  },
  // 撤回生产领料单（by 生产领料单号）
  RevokeGetProduceMaterialBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/RevokeGetProduceMaterialBill',
      method: method || 'post',
      data: data
    })
  },

  // 根据生产单ID撤回生产单的完成状态
  RevokeFinishedProduceTaskBill(data, method) {
    return request({
      url: '/api/ProductionBusniess/RevokeFinishedProduceTaskBill',
      method: method || 'post',
      data: data
    })
  }

}

export default api
